<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>电商评论情感分析系统</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
    <div class="title-container">
        <h1>电商评论情感分析系统</h1>
    </div>
    <div class="body-container">
        <div class="comment-container">
            <span class="comment-reminder">请输入一段需要进行情感分析的电商评论：</span>
            <textarea class="comment-textarea" placeholder="示例：这款台灯设计简约时尚，功能丰富便捷，很适合学习和工作；防滑性较好，安全性较高。但是价格超出预算。"></textarea>
            <button class="comment-button" onclick="sendCommentForAnalysis()">情感分析</button>
        </div>
        <div class="analyse-container">
            <span class="analyse-reminder">情感分析结果：</span>
            <div class="analyse-rect">
                <span class="text-analyse-title">整体情感倾向</span>
                <div class="text-analyse-body">
                    <div class="left-div">
                        <img src="happy_face.png" width="47px" height="47px" alt="">
                        <span class="positive-text">正向情感</span>
                    </div>
                    <div class="middle-div">
                        <div class="percent-box"></div>
                    </div>
                    <div class="right-div">
                        <img src="sad_face.png" width="47px" height="47px" alt="">
                        <span class="negtive-text">负向情感</span>
                    </div>
                </div>
                <span class="keyword-analyse-title">关键词情感倾向</span>
                <div class="keyword-analyse-body">
                    <div class="keyword-analyse-box">
                        <span class="keyword">设计</span>
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                    </div>
                    <div class="keyword-analyse-box">
                        <span class="keyword">功能</span>
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                    </div>
                    <div class="keyword-analyse-box">
                        <span class="keyword">防滑性</span>
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                    </div>
                    <div class="keyword-analyse-box">
                        <span class="keyword">安全性</span>
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                    </div>
                    <div class="keyword-analyse-box">
                        <span class="keyword">价格</span>
                        <img class="star" src="yellow_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                        <img class="star" src="gray_star.png" width="30px" height="30px" alt="">
                    </div>
                </div>
            </div>
        </div>
        <div class="word-cloud-container">
            <span class="word-cloud-reminder">词云图：</span>
            <div class="word-cloud-rect">
                <img class="word-cloud" src="default_word_cloud.png" width="400px" height="400px" alt="">
            </div>
        </div>
    </div>
    <script src="./script.js"></script>
</body>
</html>
